﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Stock.Core
{
    public class NumberElement
    {
        public static readonly DependencyProperty ComparePriceProperty = DependencyProperty.RegisterAttached(
     "ComparePrice", typeof(double), typeof(NumberElement), new PropertyMetadata(default(double)));

        public static void SetComparePrice(DependencyObject element, double value)
            => element.SetValue(ComparePriceProperty, value);

        public static double GetComparePrice(DependencyObject element)
            => (double)element.GetValue(ComparePriceProperty);
    }
}
